import request from '@/utils/request'

// 查询月配送计划详细货物列表
export function listDeliveryDetails(query) {
  return request({
    url: '/sale/deliveryDetails/list',
    method: 'get',
    params: query
  })
}

// 查询月配送计划详细货物详细
export function getDeliveryDetails(id) {
  return request({
    url: '/sale/deliveryDetails/' + id,
    method: 'get'
  })
}

// 新增月配送计划详细货物
export function addDeliveryDetails(data) {
  return request({
    url: '/sale/deliveryDetails',
    method: 'post',
    data: data
  })
}

// 修改月配送计划详细货物
export function updateDeliveryDetails(data) {
  return request({
    url: '/sale/deliveryDetails',
    method: 'put',
    data: data
  })
}

// 删除月配送计划详细货物
export function delDeliveryDetails(id) {
  return request({
    url: '/sale/deliveryDetails/' + id,
    method: 'delete'
  })
}
